package com.springspirit.framework.jms;

import org.springframework.jms.core.JmsTemplate;

public class JmsQueueReceiverImpl implements JmsQueueReceiver{

	private JmsTemplate jmsTemplate;
	
	public void setJmsTemplate(JmsTemplate jmsTemplate) {
		this.jmsTemplate = jmsTemplate;
	}

	@Override
	public Object receive() {
		return jmsTemplate.receiveAndConvert();
	}

}
